package com.itheima.demo1;

import java.io.IOException;

public class Runtime1 {
    public static void main(String[] args) throws IOException {

        Runtime runtime = Runtime.getRuntime();

        int i = runtime.availableProcessors();
        System.out.println(i);

        System.out.println(Runtime.getRuntime().availableProcessors());
        System.out.println(Runtime.getRuntime().maxMemory() / 1024 / 1024);
        System.out.println(Runtime.getRuntime().totalMemory() / 1024 / 1024);
        System.out.println(Runtime.getRuntime().freeMemory() / 1024 / 1024);

        Runtime.getRuntime().exec("shutdown -a");
    }
}
